package com.zmm.zebulon.module.pay.dal.mysql.demo;

import com.zmm.zebulon.common.pojo.PageParam;
import com.zmm.zebulon.common.pojo.PageResult;
import com.zmm.zebulon.module.pay.dal.dataobject.demo.PayDemoTransferDO;
import com.zmm.zebulon.starter.mybatis.mybatis.core.mapper.BaseMapperX;
import com.zmm.zebulon.starter.mybatis.mybatis.core.query.LambdaQueryWrapperX;
import org.apache.ibatis.annotations.Mapper;

/**
 * description: TODO
 *
 * @author zebulon
 * package com.zmm.zebulon.module.pay.dal.mysql.demo
 * name: PayDemoTransferMapper
 * date 2024/1/12 00:21
 */
@Mapper
public interface PayDemoTransferMapper extends BaseMapperX<PayDemoTransferDO> {

    default PageResult<PayDemoTransferDO> selectPage(PageParam pageParam){
        return selectPage(pageParam, new LambdaQueryWrapperX<PayDemoTransferDO>()
                .orderByDesc(PayDemoTransferDO::getId));
    }
}
